package com.neuedu.common.file.domain.model;

import com.neuedu.common.file.domain.model.enums.FileTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

@Data
@AllArgsConstructor
@Builder
public class FileResponse {

    private boolean success;

    private String name;

    private String sign;

    private String path;

    private String url;

    private FileTypeEnum type;

    private byte[] bytes;

//    private GetObjectResponse inputStream;

    public boolean isFail() {
        return !success;
    }

}
